<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/4/10/010
 * Time: 17:26
 */

namespace app\index\interfaceIn;


use app\Lib\InterfaceIn\Api\Api;
use app\Lib\Ioc\AdminAuth\Menu;

class getMenuAllMenu extends Common implements Api
{
    /**
     *
     * @return mixed
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public function handle()
    {
        $data = (new Menu())->getAllMenu();
        return $this->returnCreate($data);
    }

    public function check()
    {
        return true;
    }

}